package com.iqunxing.redis.redisInAction.ch01;

public class Article {

    private Long id;

    private String title;

    private String link;

    private String poster;

    private Long time;

    private Long votes;

    public Article() {
    }

    public Article(String title, String link, String poster) {
        this.title = title;
        this.link = link;
        this.poster = poster;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getPoster() {
        return poster;
    }

    public void setPoster(String poster) {
        this.poster = poster;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public Long getVotes() {
        return votes;
    }

    public void setVotes(Long votes) {
        this.votes = votes;
    }

    @Override
    public String toString() {
        return "Article [id=" + id + ", title=" + title + ", link=" + link + ", poster=" + poster + ", time=" + time + ", votes="
                + votes + "]";
    }

}
